package org.loofer.ext.component.info;

import android.support.annotation.RequiresPermission;
import org.loofer.ext.Ext;
import org.loofer.ext.utils.NetWorkUtils;
import org.loofer.ext.utils.NetWorkUtils.DNS;

public class Network extends NetworkDash {

    public static class Dns {
        @RequiresPermission("android.permission.ACCESS_WIFI_STATE")
        public static DNS getDNS() {
            return NetWorkUtils.getDNS(Ext.getContext());
        }
    }

    public static abstract class Proxy {
        public static int getPort() {
            return android.net.Proxy.getDefaultPort();
        }

        public static String getHost() {
            return android.net.Proxy.getDefaultHost();
        }
    }

    public static class Wifi extends WifiDash {
    }
}
